package com.zhmsky.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhmsky.VO.InStockVO;
import com.zhmsky.entity.InStock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author zhmsky
 * @date 2021/12/9 16:50
 */
@Mapper
public interface InstockMapper extends BaseMapper<InStock> {
    @Select("select i.in_num,i.type ,i.product_number ,i.operator,s.phone,s.`name` " +
            "from in_stock i,supplier s " +
            "where i.supplier_id=s.id")
    List<InStockVO> getInStock();
}
